package admin

import (
	v1 "gitee.com/g-qs/gin-vue-admin/server/api/v1"
	"github.com/gin-gonic/gin"
)

type AdminUserRouter struct {
}

func (a *AdminUserRouter) InitAdminUserRouter(Router *gin.RouterGroup) {
	adminUserRouter := Router.Group("adminUser")
	adminUserApi := v1.ApiGroupApp.AdminApiGroup.AdminUserApi
	{
		adminUserRouter.GET("getAllUserList", adminUserApi.GetAllUserList)                                 // 获取用户列表【超管】
		adminUserRouter.GET("getScUserList", adminUserApi.GetScUserList)                                   // 获取用户列表【服务中心】
		adminUserRouter.GET("getUserInfoByID", adminUserApi.GetUserInfoByID)                               // 获取单条用户记录【超管】
		adminUserRouter.PUT("updateUserInfo", adminUserApi.UpdateUserInfo)                                 // 修改用户信息【超管】
		adminUserRouter.GET("getUserDate", adminUserApi.GetOpenVipRecordByID)                              // 获取开通会员列表
		adminUserRouter.GET("getOpenVipRecord", adminUserApi.GetOpenVipRecord)                             // 获取开通会员记录【健管师】
		adminUserRouter.GET("getServiceStationOpenVipRecord", adminUserApi.GetServiceStationOpenVipRecord) // 获取开通会员记录【服务站】
		adminUserRouter.GET("getAllOpenVipRecord", adminUserApi.GetAllOpenVipRecord)                       // 获取开通会员记录【超管】
		adminUserRouter.POST("openVip", adminUserApi.OpenVip)                                              // 开通&续费会员
	}
}
